﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Hydra.Core
{
    internal class X86Scalpel : IScalpel
    {
        [DllImport("core-x86")]
        private static extern int AceInject(int pid);

        public void Inject(int pid)
        {
            if (AceInject(pid) == 0)
            {
                throw new Win32Exception(Marshal.GetLastWin32Error());
            }
        }
    }
}